package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.SensitiveWord;

public interface SensitiveWordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SensitiveWord record);

    int insertSelective(SensitiveWord record);

    SensitiveWord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SensitiveWord record);

    int updateByPrimaryKey(SensitiveWord record);
    List<SensitiveWord> selectSensitiveWords(@Param("beginTime")String beginTime,@Param("endTime")String endTime,@Param("beginIndex")int beginIndex,@Param("pageSize")int pageSize);
    int deleteById(@Param("id")Long sensitiveWordId);
    int selectSensitiveWordNum(@Param("beginTime")String beginTime,@Param("endTime")String endTime);
    
    /**
     * 根据敏感词级别查询所有符合条件的敏感词 <br/>
     * <p>Description: 根据敏感词级别查询所有符合条件的敏感词
     * <br/>
     * <p>Author: Sam<br/>
     * <p>Date: 2013-6-9-上午10:58:05<br/>
     * <p>
     * @param level 敏感词级别
     * @return   符合条件的敏感词集合
     * 
     */
    List<String> selectByLevel(@Param("wordLevel") int wordLevel);
    
    /**
     * 查询所有敏感词级别<br/>
     * <p>Description: 查询所有敏感词级别
     * <br/>
     * <p>Author: Sam<br/>
     * <p>Date: 2013-6-14-上午10:31:13<br/>
     * <p>
     * @return  敏感词级别集合
     * 
     */
    List<Short> selectAllWordLevel();
    
    List<SensitiveWord> selectSensitiveWordList();
}